/**
 * Created by Aoye on 2017/1/3.
 */
window.onload = function () {
    //左侧长度
    var rightHeight = document.getElementsByClassName('right-detail')[0].offsetHeight;
    var leftNav = document.getElementsByClassName('left-nav')[0];
    if (rightHeight>600){
        leftNav.style.height = rightHeight + 'px';
    }

};
